package com.chahu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chahu.entity.Archives;
import com.chahu.entity.Article;
import com.chahu.vo.ArticleVo;
import com.chahu.vo.Result;
import com.chahu.vo.params.ArticleParam;
import com.chahu.vo.params.PageParams;

import java.util.List;

public interface ArticleService extends IService<Article> {
    List<ArticleVo> listArticlesPage(PageParams pageParams);

    List<ArticleVo> hotArticle(int limit);

    List<ArticleVo> newArticles(int limit);

    List<Archives> listArchives();

    Result findArticleById(Long articleId);

    Result publish(ArticleParam articleParam);

    Result listArticle(PageParams pageParams);
}
